﻿<?php
include("../inc/conn.inc");
$hover=2;
$url="new10000.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=999;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>最新10000条产品信息-三帝贸易网</title>
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/link.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/primary.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("../inc/head_top.php")?>
<?php include("../inc/index_search.php")?>
<?php include("../inc/menu.php");?>
<div id="mian" class="topside6 side">
<div class="title">您所在的位置：<a href="/">首页</a> >> 最新10000条产品信息</div>
<div class="onl"></div>
</div>
<div id="mian" class="topside6  sideyellow backyellow">
<div class="title1 size14 b">最新10000条产品信息</div>
<div class="Class backwhite sideyellow1">
<ul>
<?php
    $rs=@mysql_query("select id from product where p_sh=1 and id >320000 order by id desc limit ".($thepage-1)*$maxpage.",$maxpage");
	while($row=@mysql_fetch_array($rs)){;
?>
  <li><a href="/supply/<?=$row['id']?>.html" target="_blank"><?=$row['id']?></a></li>
<?php }?>
</ul>
<div class="onl"></div>

<?php
$rs2=@mysql_query("select count(id) from product where p_sh=1 and id >320000");
$totalrecord=@mysql_result($rs2,0);
$totalpage=ceil($totalrecord/$maxpage);
@mysql_free_result($rs2);
if($totalpage>0){
?>
<div align="center">
<?php if($thepage>1){?>
   <a href="<?=$url?>">第一页</a>&nbsp;<a href="<?=$url?>?page=<?=$thepage-1?>">上一页</a>&nbsp;
<?php }?>  
<?php if($thepage!=$totalpage&&$totalpage>0){?>
   <a href="<?=$url?>?page=<?=$thepage+1?>">下一页</a>&nbsp;<a href="<?=$url?>?page=<?=$totalpage?>">最后一页</a>&nbsp;
<?php }?>   
   【共<font color="red"><?=$totalrecord?></font>条记录】【每页<font color="red"><?=$maxpage?></font>条记录】【共<font color="red"><?=$totalpage?></font>页】</div>
<?php }?>

</div>
</div>
<?php include("../inc/foot.php");?>
</body>
</html>

